﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="xManagerWebApp.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>xManager</title>
    <link id="L1" runat="server" rel="Stylesheet" href="~/CSS/blueprint/screen.css" media="screen" />
    <link id="Link3" runat="server" rel="Stylesheet" href="~/CSS/blueprint/ie.css" media="screen" />
    <link id="Link4" runat="server" rel="Stylesheet" href="~/CSS/main.css" media="screen" />
</head>
<body>    
    <div class="header">
        <div class="container">
            <h1 class="span-8 branding">xManager</h1>
            <h2 class="span-8 subtitle">Projecto final de curso 2009 @ISEL</h2>
        </div>
    </div>
    
    <form id="form1" runat="server">
    <div class="container">
    
    <div>
               

    
                    <asp:Login ID="loginCtrl" runat="server" FailureText="Invalid/Inactive User or wrong password">
                        <LayoutTemplate>
                            <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
                                <tr>
                                    <td style="text-align: left">
                                        <table border="0" cellpadding="0" style="float: left">
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label ID="LabelTitle" SkinID="FieldLabel" Style="color: #666666" runat="server">
                                                    Insert your username and your password:
                                                    </asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                        ErrorMessage="Need to specify your username." ToolTip="Need to specify your username."
                                                        ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"/>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                        ErrorMessage="Need to specify your a password." ToolTip="Need to specify your password."
                                                        ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            
                                            <tr>
                                                <td align="center" colspan="2" style="color: red; width: 180px;">
                                                    <br />
                                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"/>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" colspan="2" style="padding-right: 10px;">
                                                    <asp:ValidationSummary runat="server" ID="valSummaryLogin" ValidationGroup="Login1" />
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" colspan="2" style="padding-right: 10px;">
                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" ValidationGroup="Login1" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </LayoutTemplate>
                    </asp:Login>



    </div>
    </div>
    </form>

</body>
</html>
